<template>
    <div class="goodsdesc">
        <h4 v-text="info.title"></h4>
        <p class="line"></p>
        <p v-html="info.content"></p>

    </div>
</template>
<script>
    import common from '../../kits/common.js';
    export default{
        data(){
            return {
                id: 0,
                info:[]
            }
        },
        created(){
            this.id = this.$route.params.id
            this.getdesc()
        },
        methods: {
            getdesc(){
                var url=common.apidomain+'/api/goods/getdesc/'+this.id;
                this.$http.get(url).then(function (res) {
                    this.info=res.body.message[0]
                })
            }
        }
    }
</script>
<style scoped>
    .goodsdesc{
        padding: 5px;
    }

    .goodsdesc h4{
        color: #0094ff;
        /*font-size: 20px;*/
    }

    .goodsdesc .line{
        height: 1px;
        border:1px solid rgba(0,0,0,0.3);
    }
    .goodsdesc img{
        width: 100%;
    }
</style>